<template>
<div ref="editorRef">

</div>
</template>

<script setup>
// 代码编辑器
//https://novaalone.github.io/monaco-editor-doc-zh/guide/start.html
import { ref,onMounted } from 'vue';
import * as monaco from 'monaco-editor/esm/vs/editor/editor.api.js';

const editorRef = ref(null)
onMounted(()=>{
  console.log(editorRef.value);
  monaco.editor.create(editorRef.value, {
	value: "123"
});
})
</script>

<style scoped>

</style>